import { observable, action, makeAutoObservable, toJS } from "mobx";
import { RouterStore } from "mobx-react-router";
import request from "@utils/request";
import { portalApi } from "@http/portal";
// import { withTranslation } from 'react-i18next/*';
class RootStore {
  routing: RouterStore;
  sk: string;
  isChargeable: string;
  constructor() {
    this.routing = new RouterStore();
    this.sk = "";
    this.isChargeable = "0";
    makeAutoObservable(this);
  }

  getSysChargeable() {
    request.get(portalApi.get_sys_chargeable).then((res: any) => {
      this.isChargeable = res.data.is_chargeable;
    });
  }
}

export default RootStore;
